package com.奇技淫巧;

import cn.hutool.core.net.URLEncoder;
import cn.hutool.core.text.UnicodeUtil;
import cn.hutool.core.util.CharsetUtil;
import cn.hutool.core.util.URLUtil;

import java.nio.charset.Charset;

public class 转码器 {

    public static void main(String[] args) {
        String path = "%7B%22a%22%3A%22FFFF0N00000000008150%22%2C%22c%22%3A%22FFFF0N00000000008150%3Anvc_login%3A1744332661772%3A0.6905089620639493%22%2C%22d%22%3A%22nvc_login%22%2C%22j%22%3A%7B%22test%22%3A1%7D%2C%22h%22%3A%7B%22umidToken%22%3A%22T2gAiKTQY5mcARl-pWIvrsrdPOsYSHk01wVfRmL9AUw4Ds9EJZKZ-gQfPC1d3QZTJ_U%3D%22%7D%2C%22b%22%3A%22231!vgGJg%2BmUaUS%2BjjkB6rVN5k8FVXolRTJob%2BvClIbcpsKTbS8ErrJgBV%2B1HpRbhiJCEhFJMkR38W%2Fc45w7miotDDYOsQVgiH%2FJavBSKM3hGmZW4fOw1q2SpIDQw5uA3ssW47YURJDBxPw6Fyv8eT%2Fe6CasntC04PqSESBh6yf%2BaX%2BrniD%2BUu8e%2BZd%2B%2B4ikj6MuRlwKHJBh%2B%2B%2Bj%2BygU3%2BjOQqvKtzAdb%2Bk3%2BSUssbE4wmij4PNXMasQQKlj3LwGMFzNZR5i%2F7R3fOCU1sia0JGrUXmx0qAI8JrC%2FyEB%2F2Xz41sxz3yKd%2F%2FseeqmyzguQkC7MVl2GGyu1anmJsM8UXS018%2Fb%2Fxq02KwPuemwl0JeGw3CV54EMGQwFN1fgaK3w%2FgXHBdYRf8i5MytC46zkQ%2F9tmV%2FxHIN7Kky1OshpvgR53sniElawHG%2FzYiWF5xi4DXgwSq7pYapIR8SQgWNrPd8A5mYaa6UcfnEi%2BXryLYGUA%2FsKY%2FU3ZRo7kK0qWrs9pYComHRXV2Wyx9hQBl9kApOJnn9LXYR1RiCuLMdPe5TiQ1rsvAY4kkrYZYDmSMnrXM9%2BHiG%2F%2FeXjKl1qqa8ifmTLrF9kr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charset("UTF-8")));
        System.out.println(URLUtil.decode(path, "UTF-8"));

        System.out.println(UnicodeUtil.toString("\\u6210\\u51a0\\u521d"));
    }

    public static void unicode() {
      System.out.println(UnicodeUtil.toString("\\u5458\\u5de5\\u4e0e\\u5ba2\\u6237\\u65e0\\u5173\\u8054"));
      System.out.println(UnicodeUtil.toUnicode("郭林"));

        System.out.println(UnicodeUtil.toString("unionid\\u6821\\u9a8c\\u5931\\u8d25\\uff0c\\u8054\\u7cfb\\u5ba2\\u670d\\u5904\\u7406!"));
    }


}


